package club.janna.diveinspringboot.autoconfigure.service.impl;

import club.janna.diveinspringboot.autoconfigure.service.CalculateService;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

@Service
@Profile("java8")
public class Java8CalculateServiceImpl implements CalculateService {
    @Override
    public int sum(int... arr) {
        System.out.println("java8使用lambda表达式实现");
        return 0;
    }
}
